import { request } from '../utils/request';

export function Login(data) {
  return request({
    url: '/users/login',
    method: 'post',
    data,
  });
}
export function Register(data) {
  return request({
    url: '/users/register',
    method: 'post',
    data,
  });
}
export function findOneUser(data) {
  return request({
    url: '/users/findOneUser?user_id=' + data,
    method: 'get',
  });
}
export function getUserInfoByToken() {
  return request({
    url: '/users/userInfo',
    method: 'get',
  });
}
export function pagingUsers(data) {
  return request({
    url: '/users/pagingUsers',
    method: 'post',
    data,
  });
}